package com.read.service;

import com.read.dto.params.NovelCommentParamsDto;
import com.read.dto.params.NovelCommentReplyParamsDto;
import com.read.dto.params.NovelCommentStarParamsDto;
import com.read.dto.result.NovelCommentResultDto;

import java.util.List;

public interface CommentService {

    /**
     * @description 新增评论
     * @author sh-sunb6
     * @date 2019-03-18 11:15
     */
    int userAddComment(NovelCommentParamsDto params);

    /**
     * @description 点赞
     * @author sh-sunb6
     * @date 2019-03-18 16:14
     */
    int userAddStar(NovelCommentStarParamsDto params);

    /**
     * @description 回复评论
     * @author sh-sunb6
     * @date 2019-03-18 16:15
     */
    int userReplyComment(NovelCommentReplyParamsDto params);

    /**
     * @description 查询评论
     * @author sh-sunb6
     * @date 2019-03-20 16:04
     */
    public List<NovelCommentResultDto> selectComment(int novelId, int startPage, int pageSize);
}
